﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SES.CMS.BL;
using SES.CMS.DO;

namespace SES.CMS.Module
{
    public partial class ucHomeProducts : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["shop"] == null)
                {
                    Session["shop"] = new MyShopCart();
                }
                rptHomeProductsDataSource();
            }
        }

        private void rptHomeProductsDataSource()
        {
            rptHomeProducts.DataSource = new cmsProductBL().MobileHomepageProduct(5);
            rptHomeProducts.DataBind();
        }
        protected string FriendlyUrl(string s)
        {
            return Ultility.Change_AV(s);
        }
    }
}